

import request from "../utils/request";


export const getAddressDetail = (id: any) => request.get("/address/" + id);

export const addressAdd = (params: any) => request.post("/address", params);

export const addressEdit = (params: any) => request.put("/address", params);

export const getAddressList = (params: any) => request.get("/address", params);

export const deleteAddress = (id: any) => request.delete(`/address/${id}`);

export const getDefaultAddress = () => request.get("/address/default");
